#include "stdafx.h"
#include "Loading.h"
//#include <QMovie>
#include <QCursor>
//#include <QApplication>
//#include <QDesktopWidget>

Loading::Loading()
{
    //pMovie = new QMovie("image:sys/loading.gif");
	setWindowFlags(Qt::FramelessWindowHint | Qt::Tool);
    //move((QApplication::desktop()->width() - width())/2,  (QApplication::desktop()->height() - height())/2);
    const QPoint & pt = QCursor::pos();
    move(pt.x(), pt.y());
    //setMovie(pMovie);
    //pMovie->start();
    setFocus();
    setCursor(Qt::WaitCursor);
    show();
}

Loading::~Loading()
{
    setCursor(Qt::ArrowCursor);
    //delete pMovie;
    //pMovie = NULL;
}
